Skip to main content
Version: 1.0.2

Add a Consumer Account

'AddAccount-Consumer' API enables to create new individual customer account

Bank or financial institution can create new account for an individual customer by using this API. On providing the individual customer details including required account type as request, the account is created for the customer with the generation of unique account ID and number.

Method: POST

{{URL}}/jsonrpc

Headers

NameValue
Content-Typeapplication/json

Example

Payload Parameters
ParameterDescription

method

Mandatory

String

API method that is being called to add new consumer account through customer service

Constant value: "CustomerService.AddAccount"

id

Mandatory

String

Unique ID of API request

Sample value: "1"

params

Mandatory

Object

api

Mandatory

Object

signature

Mandatory

String

Signature for request validation

Sample value: "signature"

keyId

Mandatory

String

API key used for request authentication

Sample value: "ApplicationKeyId"

credential

Mandatory

String

API credential provided by NetXD

Sample value: "Credential"

payload

Mandatory

Object

customerID

Mandatory

String

Unique ID that identifies the customer information of individual customer

Sample value: "100000000052004"

name

Mandatory

String

Name of the customer associated with the ID

Sample value: "Dave"

accountType

Mandatory

Enum

Type of new account created for the individual customer

Valid values:

  • SAVINGS - To deposit for saving purpose
  • CHECKING - For daily use
  • WALLET - To store pre-paid money for daily usage
  • MONEY_MARKET - Interest bearing account (based on interest rates)
  • CREDIT_CARD - To track only the credit card transactions
  • GL - General Ledger for accounting record
  • CUSTODIAL - For the benefit of other financial institution

Sample value: "WALLET"

currency

Mandatory

String

Currency in which the account transactions are denominated

Sample value: "USD"

activityAccountNumber

Optional

String

The pool account under which the newly created consumer account to be added

Sample value: "900309799403557"


curl --location --globoff '{{URL}}/jsonrpc' \
--header 'Content-Type: application/json' \
--data '{"method":"CustomerService.AddAccount","id":"1","params":{"api":{"signature":"{{signature}}","keyId":"{{ApplicationKeyId}}","credential":"{{Credential}}"},"payload":{"customerID":"100000000052004","name":"DAVE","accountType":"WALLET","currency":"USD","activityAccountNumber":"900309799403557"}}}'

Body


{
"method": "CustomerService.AddAccount",
"id": "1",
"params": {
"api": {
"signature": "{{signature}}",
"keyId": "{{ApplicationKeyId}}",
"credential": "{{Credential}}"
},
"payload": {
"customerID": "100000000052004",
"name": "DAVE",
"accountType": "WALLET", // If account type is 'CUSTODIAL', 'CustodialCustomerId' and 'custodialType' fields are mandatory
"currency": "USD",
"activityAccountNumber":"900309799403557"
}
}
}

Response: 200

Response Parameters
ParameterDescription

id

String

Response ID echoed from the request ID

Sample value: "1"

result

Object

ID

String

Unique ID generated for newly created individual customer account

Sample value: "3173041"

status

Enum

Status of the newly added account

Valid values:

  • CREATED - Account has been newly created
  • ACTIVE - Account is currently active and can be used for transactions
  • CURTAILED - Account functionalities are limited
  • DORMANT - Account is inactive for a specific period
  • SUSPENDED - Account is Temporarily disabled
  • BLOCKED - Account is restricted from performing any transactions
  • CLOSED - Account is permanently terminated and can no longer be used
  • DISABLED - Account is inactive and unusable, either temporarily or permanently

Sample value: "ACTIVE"

accountNumber

String

Account number that is newly assigned for individual customer

Sample value: "200982345048071"

accountType

Enum

Type of account newly created for the individual customer

Valid values:

  • SAVINGS - To deposit for saving purpose
  • CHECKING - For daily use
  • WALLET - To store pre-paid money for daily usage
  • MONEY_MARKET - Interest bearing account (based on interest rates)
  • CREDIT_CARD - To track only the credit card transactions
  • GL - General Ledger for accounting record
  • CUSTODIAL - For the benefit of other financial institution

Sample value: "WALLET"

institutionID

String

Routing number of the financial institution where customer holds the account

Sample value: "101115399"

customerID

String

Unique ID that identifies the individual customer

Sample value: "100000000052004"

jsonrpc

String

JSON RPC version

Constant value: "2.0"


{
"id": "1",
"result": {
"ID": "3173041",
"status": "ACTIVE",
"accountNumber": "200982345048071",
"accountType": "WALLET",
"institutionID": "101115399",
"customerID": "100000000052004"
},
"jsonrpc": "2.0"
}